Level 4 Module Overview
New Module Overview
Solutions
Topics:
2D Arrays
Learning Objectives:
- create a 2D array of any data type or object
- define the size of an array with new[][]
- determine the length of a pre-defined 2D array
- know the definition of nested loops and nested conditionals
- iterate through the elements of a 2D array using a nested for loop
- initialize a 2D array with constant values
- translate from screen coordinates to grid coordinates
- tell the difference between row-major order and column-major order
- know that Java uses row major order for 2D arrays
Topics:
Generics, Switch Statements and Enums
Learning Objectives:
- use Java Generics to create generic data types
- make generic data types for methods
- make generic data types for classes
- make a switch statement
- translate an if/else block into a switch statment
- translate a switch statment into an if/else block
- create an enum in Java
- iterate through enums using a switch statement
- know the definition of generic data types
Topics:
Strings, Characters
Learning Objectives:
- break a String apart into its individual characters
- append new characters to the end of strings
- identify the output of a program based on the value of its String variables
- programatically identify whether a character is upper or lower case
- be able to locate sub strings of larger strings
- understand the purpose of String methods: length, charAt, indexOf, contains
- understand different escape characters \n \t \\ \" \'
Topics:
Exceptions
Learning Objectives:
- make a method indicate that it can throw exceptions
- throw exceptions from methods
- use try/catch/finally statements to handle exceptions
- know that try block must have a catch or a finally block with it
- identify the control flow of a program during exceptional situations
- write custom exceptions by extending the Exception class
- know that exceptions happen at run-time
Topics:
Encapsulation, Polymorphism
Learning Objectives:
- know the definition of encapsulation
- know the definition of Polymorphism
- properly encapsulate member variables
- know why encapsulation is important
- give examples of polymorphism in a Java context
- understand the purpose of the super() method
- understand the purpose of public, private, and protected keywords